<!DOCTYPE html>
<html>
<head>
<title>视频管理</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/flowdesigner.css">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../plugins/multiple-select/multiple-select.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
<script src="../../libs/ajaxupload.js"></script>
<script src="../../plugins/multiple-select/multiple-select.js"></script>
<style type="text/css">
.overdiv{position:fixed; z-index:9997;top:0;left:0;width:100%; height:100%;background-color:white;filter: alpha(opacity=50); opacity: 0.5;text-align: center;color: white;}
.overdiv1{top:50%;margin-left:-32px;margin-top:-32px;left:50%;position:fixed; z-index:9999;overflow:auto;}
</style>

</head>
<body>
    <div id="down_div" class="overdiv xhide"></div><!-- 遮罩层 -->
    <div id="over_div" class="overdiv1 xhide"><img src="../../images/syspic/wait.gif" alt="txby" /></div><!-- 加载中 -->
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.title" @keyup.enter="query" placeholder="标题">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<a v-if="hasPermission('sys:video:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('sys:video:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('sys:video:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal" id="fm">
			<div class="form-group">
				<div class="col-sm-2 control-label">标题<span  style="color: red;font-size: 16px">*</span></div>
				<div class="col-sm-10">
					<select  multiple="multiple"  id="deviceType" style="width:100%;">
					</select>
				</div>
			</div>		
			<div class="form-group">
				<div class="col-sm-2 control-label">品牌</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" style="cursor:pointer;" v-model="video.brand"  placeholder="品牌"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">设备名称<span  style="color: red;font-size: 16px">*</span></div>
				<div class="col-sm-10">
					<input type="text" class="form-control" style="cursor:pointer;" v-model="video.deviceName"  placeholder="设备名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">生产厂家</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" style="cursor:pointer;" v-model="video.producer"  placeholder="生产厂家"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">物料编码<span  style="color: red;font-size: 16px">*</span></div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="video.materialCode" placeholder="物料编码"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">设备型号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"   v-model="video.typeNo"  placeholder="设备型号"/>
				</div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">屏幕尺寸</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="video.facadeSize" placeholder="屏幕尺寸(英寸)"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">规格</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="video.specification" placeholder="规格"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="video.remarks" placeholder="备注"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="../../js/modules/video/video.js"></script>
<script language="javascript" type="text/javascript" src="../../js/modules/WdatePicker.js"></script>
</body>
</html>